package com.leonzhangxf.aop.bean.impl;

import com.leonzhangxf.aop.bean.HelloWorldAnno;
import com.leonzhangxf.aop.bean.HelloWorldService;
import org.springframework.stereotype.Service;

/**
 * A simple implementation of {@link HelloWorldService}.
 *
 * @author leonzhangxf
 */
@Service
public class HelloWorldServiceImpl implements HelloWorldService {

    @Override
    public void helloWorld() {
        System.out.println("hello world");
    }

    @Override
    @HelloWorldAnno
    public void helloWorld(String message) {
        System.out.println(message);
    }
}
